<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Web extends CI_Controller {

    /**
     *   网站前台
     */
	 
    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->database();
        $this->load->library('file_upload');
    }

    public function index() {
        $this->load->view('header_view');
		$this->load->view('index_view');
		$this->load->view('footer_view');
    }

    
	public function about() {
        $this->load->view('header_view');
		$this->load->view('about_view');
		$this->load->view('footer_view');
    }
	
	public function product() {
        $this->load->view('header_view');
		$this->load->view('product_view');
		$this->load->view('footer_view');
    }	
	
	public function videoPlay() {
        $this->load->view('header_view');
		$this->load->view('videoPlay_view');
		$this->load->view('footer_view');
    }	
	
	public function photo() {
        $this->load->view('header_view');
		$this->load->view('photo_view');
		$this->load->view('footer_view');
    }
	
	
	public function photoShow() {
        $this->load->view('header_view');
		$this->load->view('photoShow_view');
		$this->load->view('footer_view');
    }
	
	
	public function teams() {
        $this->load->view('header_view');
		$this->load->view('teams_view');
		$this->load->view('footer_view');
    }
	
	public function joinus() {
        $this->load->view('header_view');
		$this->load->view('joinus_view');
		$this->load->view('footer_view');
    }
	
	
	public function contect() {
        $this->load->view('header_view');
		$this->load->view('contact_view');
		$this->load->view('footer_view');
    }
	
	
	
	
	
	public function test() {
        $config_array["upload_path"]="asdasd/adas";
        $img_confi['new_image'] = './uploads/banner/thum';
      // $this->file_upload->upLoadfile($config_array);
        $this->file_upload->process_img($img_confi);
        
        exit;
        
        
        $siteurl = site_url();
  // echo  $post_array["full_path"] = $siteurl . "/../uploads/banner/d4754c956853984b13c9166877a3d6cf.jpg";
 $post_array["full_path"] ="./uploads/banner/d4754c956853984b13c9166877a3d6cf.jpg";
        $config['image_library'] = 'gd2';
        $config['source_image'] = $post_array["full_path"];
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 175;
        $config['height'] = 80;

        $this->load->library('image_lib', $config);

        $this->image_lib->resize();
        echo "asdasdsad";
    }

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */